#pragma once
#include <iostream>
#include <ctime>
#include <string>

#define NORMAL 1
#define WARNING 2
#define ERROR 3

#define LOG(LEVEL, MSG) log(#LEVEL, MSG, __FILE__, __LINE__)

void log(std::string level, std::string msg, std::string file, int line)
{
    std::cout << "level:" << level << " time:" << time(nullptr) << " msg:" << msg << " file:" << file << " line:" << line << std::endl;
}